<div class="wrapper wrapper-content fadeInRight" ng-controller="projectCtr">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content" style="overflow: auto">
                    <div class="col-sm-12 no-padding">
                        <ul class="nav nav-tabs">
                            <li ng-repeat="item in data.tabList" ng-class="{'active' : item.index == data.index}" ng-click="edit(item.index)"><a data-toggle="tab">{{item.name}}</a></li>
                        </ul>
                    </div>
                    <form class="form-horizontal col-sm-12" id="editForm" style="margin-top: 20px;" ng-if="data.edit.id>0">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">项目名称<span style="color:red;">*</span></label>
                            <div class="col-sm-8">
                                <input ng-model="data.edit.title" class="form-control" placeholder="请输入项目名称" name="title" required/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">开始时间<span style="color:red;">*</span></label>
                            <div class="col-sm-8">
                                <input ng-model="data.edit.start_date" datetimepicker class="form-control" placeholder="请输入开始时间" name="start_date" required/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">结束时间<span style="color:red;">*</span></label>
                            <div class="col-sm-8">
                                <input ng-model="data.edit.end_date" datetimepicker class="form-control" placeholder="请输入开始时间" name="end_date" required/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">桥梁长度<span style="color:red;">*</span></label>
                            <div class="col-sm-8">
                                <input ng-model="data.edit.length" class="form-control" placeholder="请输入桥梁长度" name="length" required/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">结构形式<span style="color:red;">*</span></label>
                            <div class="col-sm-8">
                                <input ng-model="data.edit.structure" class="form-control" placeholder="请输入结构形式" name="structure" required/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">cad图片</label>
                            <div class="col-sm-8">
                                <div class="col-sm-2">
                                    <div class="row row_progress_box">
                                        <button type="button" class="btn btn-primary" id="uploadViewCad" ng-model="data.edit.cad" upload-oss accept="image" upload-ing="data.uploading">
                                            <i class="fa fa-upload"></i>
                                            <span class="bold">上传</span>
                                        </button>
                                    </div>
                                </div>
                                <div class="col-sm-3" ng-if="data.edit.cad">
                                    <a href="{{data.edit.cad}}" target="_blank">
                                        <img src="{{data.edit.cad}}" title="点击查看" style="height: 100px"/>
                                    </a>
                                </div>

                            </div>
                        </div>
                        <div class="form-group" ng-if="data.edit.id==1">
                            <label class="col-sm-2 control-label">xlsx文件</label>
                            <div class="col-sm-8">
                                <div class="row row_progress_box">
                                    <div class="col-sm-10">
                                        <input class="form-control " ng-model="data.edit.file_xlsx" placeholder="xlsx文件地址">
                                    </div>
                                    <button type="button" class="btn btn-primary" id="uploadViewImage2" ng-model="data.edit.file_xlsx" upload-oss accept="xlsx" upload-ing="data.uploading">
                                        <i class="fa fa-upload"></i>
                                        <span class="bold">上传</span>
                                    </button>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"></label>
                            <div class="col-sm-8">
                                <button type="button" class="btn btn-primary" ng-click="commit()" access="ProjectSave">保存</button>
                            </div>
                        </div>
                    </form>
                    <div ng-if="data.edit.id==''" style="margin-top: 80px;text-align: center">
                        <h3>暂无数据</h3>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>